#ifndef EMPLOYEE_H #define EMPLOYEE_H #include #include using namespace std; class Employee { private: string *name; string SSN; string emp_num; string date; public: Employee() { name = new string; } ~Employee() { delete name;} void set_name(string c) { *name = c;} bool set_SSN(string); bool set_emp_num(string); void set_date(string c) { date = c;} string get_name() { return *name;} string get_SSN() { return SSN;} string get_emp_num() { return emp_num;} string get_date() { return date;} }; bool Employee::set_SSN(string c) { bool status = false; int size = c.length(); if(size >11) status = false; else{ for(int i =0; i'9') { status = false; i=size++;} else status = true;} } SSN = c; return status; } bool Employee::set_emp_num(string c) { bool status = false; int size = c.length(); if(size > 5) status = false; else { for(int i=0; i='A' || c.at(4) <='M')) status = true; else{ if(c.at(i)<'0' || c.at(i)>'9') { status = false; i=size++;}} }}} emp_num = c; return status;} class EmployeePay : public Employee { private: double annual, monthly; int dependents; public: bool set_annual(double); bool set_monthly(double); bool set_dependents(int); double get_annual() { return annual;} double get_monthly() { return monthly;} int get_dependents() { return dependents;} }; bool EmployeePay::set_annual(double v) { bool status = false; if (v >= 0) {annual = v; status = true;} return status;} bool EmployeePay::set_monthly(double v) { bool status = false; if (v >= 0) {monthly = v; status = true;} return status;} bool EmployeePay::set_dependents(int v) { bool status = false; if (v >= 0) {dependents = v; status = true;} return status;} #endif